<template>
  <div>
    <div>{{ msg }}</div>
    <button @click="msg += 1">Msg加1</button>
  </div>
</template>

<script>
export default {
  name: "Msg",
  data() {
    return {
      msg: "Msg",
    };
  },
  beforeCreate() {
    console.log("beforeCreate", "msg");
  },
  created() {
    console.log("created", "msg");
  },
  beforeMount() {
    console.log("beforeMount", "msg");
  },
  mounted() {
    console.log("mounted", "msg");
  },
  beforeUpdate() {
    console.log("beforeUpdate", "msg");
  },
  updated() {
    console.log("updated", "msg");
  },
  beforeDestroy() {
    console.log("beforeDestroy", "msg");
  },
  destroyed() {
    console.log("destroyed", "msg");
  },
  activated() {
    console.log("activated", "msg");
  },
  deactivated() {
    console.log("deactivated", "msg");
  },
};
</script>

<style lang="scss" scoped></style>
